﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace simplewebcms.Core.DomainObjects
{
    /// <summary>
    /// Represents a section of content on a page.
    /// </summary>
    public class CMSContent
    {
        /// <summary>
        /// The name of this content section.  It is used to
        /// key it into the layout of the page, and must be
        /// unique for the page.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// When the content section was created.
        /// </summary>
        public DateTime CreatedOn { get; set; }

        /// <summary>
        /// When the content section was last changed.
        /// </summary>
        public DateTime LastChangedOn { get; set; }

        /// <summary>
        /// The unique filemask used to store the versions
        /// of the conetent section on the disk. A file mask of 
        /// 'page_content_*.html' would match 'page_content_001.html',
        /// 'page_content_002.html',etc.
        /// </summary>
        public string VersionCodeFileMask { get; set; }

        /// <summary>
        /// The name of the file to use in the content section 
        /// on the page.
        /// </summary>
        public string CurrentVersionCode { get; set; }
    }
}
